﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TaoDeTuDong.ascx.cs" Inherits="Main.TaoDeTuDong" %>
 <script type="text/javascript">
    function Enable(key)
    {
        document.getElementById('tblMain').style.visibility = key;
    }
 </script>
 <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div id="Location" class="Location" runat="server"><a href="../Administrator.aspx">Administrator Page</a> >> Tạo đề tự động</div>
            <div id="Notice" class="Notice" runat="server" visible="false"></div>
            <div id="Errors" class="Errors" runat="server" visible="false"></div>
            <div id="Form" runat="server" >
                <fieldset>
                <table width="100%" >
                    <tr>
                        <td>Tên bộ đề</td>
                        <td><asp:TextBox ID="txtTenDe" runat="server"></asp:TextBox></td>
                        <td>Chuyên mục</td>
                        <td><asp:DropDownList ID="ddlChuyenMuc"  runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlChuyenMuc_SelectedIndexChanged">
                            </asp:DropDownList></td>
                        <td>Mô tả</td>
                        <td><asp:TextBox ID="txtMoTa" runat="server"></asp:TextBox></td>
                    </tr>
                </table>
                </fieldset>
                <fieldset>
                <table style="visibility:hidden" id="tblMain" width="100%">
                    <tr>
                        <td >Loại câu hỏi</td>
                        <td >Số câu hỏi cần</td>
                        <td >Khoảng câu hỏi cần lấy</td>
                    </tr>
                    <tr>
                        <td style="width:auto">Câu hỏi đơn:<asp:Label ID="lblSoCauDoc" runat="server"></asp:Label></td>
                        <td style="width:auto"><input type="text" id="txtSoCauHoiDonCan" runat="server" style="border:0; background-color:Transparent; color:#f6931f; font-weight:bold;"/><div id="divCauHoiDonCan" runat="server" style="width:90%"></div></td>
                        <td style="width:auto"><input type="text" id="txtKhoangCauHoiDon" runat="server" style="border:0; background-color:Transparent; color:#f6931f; font-weight:bold;"/><div id="divKhoangCauHoiDon" runat="server" style="width:90%"></div></td>
                    </tr>
                    <tr>
                        <td >Câu hỏi đoạn văn:<asp:Label ID="lblSoCauHoiDoanVan" runat="server"></asp:Label></td>
                        <td ><input type="text" id="txtSoCauDoanVanCan" runat="server" style="border:0; background-color:Transparent; color:#f6931f; font-weight:bold;"/><div id="divCaHoiDoanVanCan" runat="server" style="width:90%"></div></td>
                        <td ><input type="text"  id="txtKhoangCaHoiDoanVan" runat="server" style="border:0; background-color:Transparent; color:#f6931f; font-weight:bold;" /><div id="divKhoangCauHoiDoanVan" runat="server" style="width:90%"></div></td>
                    </tr>
                    <tr>
                        <td>Câu hỏi mp3:<asp:Label ID="lblSoCauHoiMp3" runat="server"></asp:Label></td>
                        <td><input type="text" id="txtSoCauMp3can" runat="server" style="border:0; background-color:Transparent; color:#f6931f; font-weight:bold;"/><div id="divCauHoiMp3Can" runat="server" style="width:90%"></div></td>
                        <td ><input type="text" id="txtKhoangCauHoiMp3" runat="server" style="border:0; background-color:Transparent; color:#f6931f; font-weight:bold;" /><div id="divCauHoiMp3" runat="server" style="width:90%"></div></td>
                    </tr>
                    <tr>
                        <td >Câu hỏi video:<asp:Label ID="lblSoCauHoiVideo" runat="server"></asp:Label></td>
                        <td><input type="text" id="txtSoCauVideoCan" runat="server" style="border:0; background-color:Transparent; color:#f6931f; font-weight:bold;"/><div id="divCauHoiVideoCan" runat="server" style="width:90%"></div></td>
                        <td ><input type="text" id="txtKhoangCauHoiVideo" runat="server" style="border:0; background-color:Transparent; color:#f6931f; font-weight:bold;"/><div id="divCauHoiVideo" runat="server" style="width:90%"></div></td>
                    </tr>
                    <tr>
                        <td>
                            <br />
                            <asp:LinkButton ID="lnkThucHien" CssClass="Button2" runat="server" OnClick="lnkThucHien_Click">Thực Hiện</asp:LinkButton>
                            <br />
                            <br />
                        </td>
                    </tr>
                </table>
                </fieldset>
            </div>

           <div runat="server" id="divTools">
                       <br />
            <br />
               <asp:LinkButton ID="lnkRefresh" CssClass="Button2" runat="server" OnClick="lnkRefresh_Click">Sắp Xếp lại Câu Hỏi</asp:LinkButton>
               <asp:LinkButton ID="lnkPrinter" CssClass="Button2" runat="server">Printer-Friendly Version</asp:LinkButton>
           </div>
            <asp:HiddenField ID="HidMaDe" runat="server" />
           <div runat ="server" id="divDisLay"></div>
        </ContentTemplate>
   </asp:UpdatePanel>
   <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
       <ProgressTemplate>
                <div class="overlay" id="divProgress" style="position: absolute">
                    <center>
                        <asp:Image runat="server" ID="AjaxLoading" SkinID="AjaxLoadingIndicator" />
                    </center>
                </div>
        </ProgressTemplate>
</asp:UpdateProgress>